-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
BUG: avoid validation error for ufunc with string[python] array #62498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: avoid validation error for ufunc with string[python] array #62498
Conversation
else: | ||
if self.dtype.type is str: # type: ignore[comparison-overlap] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Would be a nice if this was elif
so it could be un-indented one level, but not a big deal.
Thanks @jorisvandenbossche |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Manual backport -> #62505 |
Addresses part of #40800, i.e. fixing the plain error when calling a ufunc that does not return string values on a string array/Series.
There are also issues with the resulting dtype (if the ufunc returns object dtype, should we infer the dtype?), but that is left for another issue (that is also less pressing than fixing the raised error)